//
//  MainWindowController.swift
//  WWDCLearn
//
//  Created by mac on 2021/6/30.
//

import Cocoa
import PlayerUI

enum MainWindowTab: Int {
    case featured
    case schedule
    case videos
    case community
    func stringValue() -> String {
        var name = ""
        debugPrint(self,separator: "",terminator: "",to:&name)
        return name
    }
}

extension Notification.Name {
    static let MainWindowWantsToSelectSearchField = Notification.Name("MainWindowWantsToSelectSearchField")
}
class MainWindowController: WWDCWindowController {
    weak var touchBarProvider: NSResponder? {
        didSet {
            touchBar = nil
        }
    }
    static var defaultRect: NSRect {
        return NSScreen.main?.visibleFrame.insetBy(dx: 50, dy: 120) ?? NSRect(x: 0, y: 0, width: 1200, height: 600)
    }
   public var sidebarInitWidth:CGFloat?

    override func loadWindow() {
        let mask:NSWindow.StyleMask = [.titled,.resizable,.miniaturizable,.closable,.fullSizeContentView]
//        let window =

    }
}
